// 移除特性门控（Tauri 2.x 不再需要）
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

mod models;
mod file_commands;
mod file_tree;

use file_commands::{rename_file, delete_path, create_path,read_file_content,write_file_content};
use file_tree::get_filtered_file_tree;

fn main() {
    tauri::Builder::default() 
        .invoke_handler(tauri::generate_handler![
            get_filtered_file_tree,
            rename_file,
            delete_path,
            create_path,
            read_file_content,
            write_file_content
        ])
        .run(tauri::generate_context!())
        .expect("无法启动应用程序");
}